package com.kebabeaters.nakebab.shared.action;

import com.gwtplatform.dispatch.shared.Action;
import com.gwtplatform.dispatch.shared.Result;

public class AbstractAction<R extends Result> implements Action<R> {

	@Override
	public String getServiceName() {
//		String className = this.getClass().getName();
//		int namePos = className.lastIndexOf(".") + 1;
//		className = ActionImpl.DEFAULT_SERVICE_NAME
//				+ className.substring(namePos);
//
//		return className;
		return DEFAULT_SERVICE_NAME;
	}

	@Override
	public boolean isSecured() {
		return false;
	}

}
